package 第九章作业;

public class animal2 {
        public static void main(String[] args) {
            System.out.println("---------正常方法调用---------");
            Animal animal = new Animal();
            animal.eat();

            Cat cat = new Cat();
            cat.eat();

            Dog dog = new Dog();
            dog.eat();
        }
    }


